In the current Performance Metrics Application Programming Interface
(PMAPI) context, locate the description of the instance domain _i_n_d_o_m, and
return via _i_n_s_t_l_i_s_t the internal instance identifiers for all instances,
and via _n_a_m_e_l_i_s_t the full external identifiers for all instances. The
number of instances found is returned as the function value (else less
than zero to indicate an error).
The value for the instance domain _i_n_d_o_m is typically extracted from a
_p_m_D_e_s_c structure, following a call to ppppmmmmLLLLooooooookkkkuuuuppppDDDDeeeesssscccc(3) for a particular
performance metric.
The resulting lists of instance identifiers (_i_n_s_t_l_i_s_t and _n_a_m_e_l_i_s_t), and
the names that the elements of _n_a_m_e_l_i_s_t point to, will have been
allocated by ppppmmmmGGGGeeeettttIIIInnnnDDDDoooommmm with two calls to mmmmaaaalllllllloooocccc(3C), and it is the
responsibility of the caller to _f_r_e_e(_i_n_s_t_l_i_s_t) and _f_r_e_e(_n_a_m_e_l_i_s_t) to
release the space when it is no longer required.
When the result of ppppmmmmGGGGeeeettttIIIInnnnDDDDoooommmm is less than one, both _i_n_s_t_l_i_s_t and
_n_a_m_e_l_i_s_t are undefined (no space will have been allocated, and so calling
ffffrrrreeeeeeee(3C) is a singularly bad idea).
SSSSEEEEEEEE AAAALLLLSSSSOOOO
PPPPMMMMAAAAPPPPIIII(3), ppppmmmmLLLLooooooookkkkuuuuppppDDDDeeeesssscccc(3) ppppmmmmLLLLooooooookkkkuuuuppppIIIInnnnDDDDoooommmm(3) and ppppmmmmNNNNaaaammmmeeeeIIIInnnnDDDDoooommmm(3).
DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
PPPPMMMM____EEEERRRRRRRR____IIIINNNNDDDDOOOOMMMM
_i_n_d_o_m is not a valid instance domain identifier